<?php
/**
 * Template Name: Page of Books
 *
 * Selectable from a dropdown menu on the edit page screen.
 */
?>

<?php get_header(); ?>


<?php 
$type = 'library';
$args=array(
  'post_type' => $type,
  'post_status' => 'publish',
  'paged' => $paged,
  'posts_per_page' => 50,
  'caller_get_posts'=> 1
);
$temp = $wp_query;  // assign orginal query to temp variable for later use   
$wp_query = null;
$wp_query = new WP_Query($args); 
?>	
<?php

 get_template_part( 'loop', 'page-library' );?>
	<?php
	function library_pages_links(){
    if(function_exists('pagination')) { pagination(); }
	}
	library_pages_links();
    ?>
<?php get_footer(); ?>